package com.aorise.mapper.diagnosis;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import com.aorise.model.diagnosis.*;

/**
* @Author:cat
* @Description 诊断任务队列mybatis接口类
* @Date:Created in 2019-06-25
* @Modified By:
*/
@Mapper
@Component(value = "diagnosisMQMapper")
public interface DiagnosisMQMapper {

    /**
     * @Author:cat
     * @Description 新增诊断队列任务
     * @params: map 条件
     * @Date:2019-06-25
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer addDiagnosisMQ(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 查询所有诊断队列任务
     * @Date:2019-06-25
     * @Return: List<diagnosisMQModel> 诊断队列任务集合
     * @Modified By:
     */
    List<DiagnosisMQModel> getDiagnosisMQ() throws DataAccessException;

    /**
     * @Author:cat
     * @Description 更新诊断队列任务状态
     * @params: map 条件
     * @Date:2019-06-25
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer updateDiagnosisMQStatus(Map<String, Object> map) throws DataAccessException;

    /**
     * @Author:cat
     * @Description 根据ID删除诊断队列任务
     * @params: map 条件
     * @Date:2019-06-25
     * @Return: Integer 影响行数
     * @Modified By:
     */
    Integer deleteDiagnosisMQ(Map<String, Object> map) throws DataAccessException;
}